package com.woniuxy.yoga.mapper;

import com.woniuxy.yoga.pojo.Orders;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author axq
 * @since 2020-10-28
 */
public interface OrdersMapper extends BaseMapper<Orders> {

    @Select("select courseid from orders where ordered=#{ordered}")
    Integer getCourseByOrderId(Integer ordered);
}
